package org.ruanjj.randomizedset;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class main {
    public static void main(String[] args) {
/*        输入
                ["RandomizedSet", "insert", "remove", "insert", "getRandom", "remove", "insert", "getRandom"]
[[], [1], [2], [2], [], [1], [2], []]

["RandomizedSet","insert","insert","remove","insert","remove","getRandom"]
[[],[0],[1],[0],[2],[1],[]]
        */
        RandomizedSet2 randomizedSet = new RandomizedSet2();
        boolean insert = randomizedSet.insert(0);
        boolean insert1 = randomizedSet.insert(1);
        boolean remove1 = randomizedSet.remove(0);
        boolean insert2 = randomizedSet.insert(2);
        boolean remove2 = randomizedSet.remove(1);
        int random1 = randomizedSet.getRandom();

        String[] tmp = new String[26];
        System.out.println(tmp[0]);
    }
}
